<?php header("Content-type=text/html;charset=utf-8") ?>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<style>
			body { margin:"0 auto"; font-family:"Microsoft Yahei";font-size:9pt;}
			
		</style>
	</head>

	<body>


		<?php

		class Cal{
			var $value=0;
			
			function add(){
				$this->value++;
			}
			
			function report(){
				return $this->value;
			}
		}
		
		
		$c=new Cal;
		$c->add();
		echo $c->report();
			
		?>
	</body>
</html>